<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body bgcolor="#ffe4c4">
<center>

<font color="blue"><h1>欢迎注册</h1></font>
<font color="red"> <h1>{{ error }}</h1></font>
<form action="" method="post">
    {% csrf_token %}
    注册账号: <input type="text" name="uname">
    <br>
    注册密码: <input type="password" name="upwd">
    <br>
    确认密码: <input type="password" name="upwd2">
    <br>
    角色:
    <input type="radio" name="role" value="1">学生
    <input type="radio" name="role" value="2">老师
    <br>
    <input type="submit" value="注册">
    </center>
</form>
</body>
</html>












